//org.jackysoft.workflow.bizness.util.SetActionStatusFunction
package org.jackysoft.workflow;

import java.util.Map;

import org.jackysoft.entity.WorkflowRunner;
import org.jackysoft.service.OsVariableService;

public class SetActionStatusFunction implements FunctionProvider {

	@Override
	public void execute(Map<String, Object> transientVars,
			Map<String, String> args, OsVariableService vservice)
			throws WorkflowException {
		String status = args.get(TechActionStatus.STATUSNAME
				.toString());
		if (status == null)
			throw new IllegalArgumentException("未设置适当的参数 ["
					+ TechActionStatus.STATUSNAME + "]");
		WorkflowRunner entry = (WorkflowRunner) transientVars.get("entry");
		vservice.setVariable(entry.getId(),	TechActionStatus.STATUSNAME.toString(), status);
	

	}

}
